"""
check run classifier weka
"""
import sys
sys.path.append("..")

from runclassiferweka import *

import re
import unittest


class testRunSMO(unittest.TestCase):
    """
    run smo classifer
    this may be the universal for classifer
    """
    
    def testRunSMODetail(self):
        """
        === Predictions on test data ===
        """
        i = 1
        dic = {}
        dic['-t'] = "./train.arff"
        dic['-T'] = "./test.arff"
        dic['>'] = "./smoresultoutput.txt"
        SMODetail(dic)
        
        self.assertEqual(os.path.isfile("./smoresultoutput.txt"),True)
        
        

    def testRunSMOSummary(self):
        j = 1

    def testRunSMOTrain(self):
        k = 1

    def testRunSMOwithTrain(self):
        l = 1

if __name__ == "__main__":
    unittest.main()   
